package jobs.model.dao;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import jobs.pattern.design.DAOComposite;
import jobs.model.Year;

/**
 * Clase que nos permite acceder a la información en base de la entidad Año
 *
 * @author Paul Tamayo
 */
@Stateless
public class YearDAO extends DAOComposite<Year> {

    @PersistenceContext(unitName = "jobsPU")
    private EntityManager em;

    @Override
    protected EntityManager getEntityManager() {
        return em;
    }

    public YearDAO() {
        super(Year.class);
    }
}
